home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
arachne.igz
/
arachne.img
/
LIB
/
NWODI32.CAB
/
bin
/
Nbihw.bat
< prev
next >
Wrap
DOS Batch File
|
2005-01-16
|
1KB
|
35 lines
@if "%debug%"=="" echo off
for %%i in (%tmp%\_nbihw.*) do if exist %%i del %%i >nul
for %%i in (_dev _dev0 _bus _bus0 nbi0) do set %%i=
if exist %tmp%\_nbihw.tmp del %tmp%\_nbihw.tmp
if exist %tmp%\_nbihw.bat del %tmp%\_nbihw.bat >nul
echo %pci0% >%tmp%\_nbihw.bak
lmod set _dev=[$4][+]set _bus=[$3]<%tmp%\_nbihw.bak >%tmp%\_nbihw.bat
if exist %tmp%\_nbihw.bat call %tmp%\_nbihw.bat
if exist %tmp%\_nbihw.bat del %tmp%\_nbihw.bat >nul
if "%_dev%"=="" goto _end
if "%_bus%"=="" goto _end
varset _dev0=8*(%_dev%\2)| lmod []>>%tmp%\_nbihw.bat
varset _dev=(%_dev%/2)| lmod []>>%tmp%\_nbihw.bat
if exist %tmp%\_nbihw.bat call %tmp%\_nbihw.bat
if exist %tmp%\_nbihw.bat del %tmp%\_nbihw.bat >nul
if "%_dev%"=="10" set _dev=A
if "%_dev%"=="11" set _dev=B
if "%_dev%"=="12" set _dev=C
if "%_dev%"=="13" set _dev=D
if "%_dev%"=="14" set _dev=E
if "%_dev%"=="15" set _dev=F
if "%_bus%"=="1" set _bus=0.F0
if "%_bus%"=="3" set _bus=2.10
set nbi0=PCI.%_bus%.%_dev%%_dev0%
:_pci
:_end
for %%i in (%tmp%\_nbihw.*) do if exist %%i del %%i >nul
for %%i in (_dev _dev0 _bus _bus0) do set %%i=